package cn.cdeden.knowledge.service;

import cn.cdeden.knowledge.domain.SysSchedule;
import cn.cdeden.knowledge.domain.dto.SysCalendarDto;
import cn.cdeden.knowledge.domain.dto.SysScheduleDto;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.Date;
import java.util.List;

public interface SysScheduleService extends IService<SysSchedule>{

    List<SysScheduleDto> getAllAndPermission(List<Long> scheduleIds, Long userId);

    List<Long> getAllAndDetails(Long scheduleId, Long userId);

    Boolean deleteBatchPersonnel(Long scheduleId, List<Long> userIds);

    Boolean deleteBatchPermissions(Long scheduleId, List<Long> userIds);

    /**
     * 查询关注成员的日程数据
     * @param userIds 用户ID
     * @param startDate 开始时间
     * @param endDate 结束时间
     * @return
     */
    List<SysCalendarDto> attentionShow(List<Long> userIds, Date startDate, Date endDate);
}
